package com.zy.dsms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.zy.dsms.mapper.UserMapper;
import com.zy.dsms.pojo.User;
import com.zy.dsms.service.UserService;

/** 
* @author  wj     
* @version 创建时间：2018年8月22日 上午10:10
* 用户业务的实体类
*/
@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED,readOnly=false)
@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper userMapper;
	/**
	 * 通过主键查询用户，用于登录
	 */
	public User findUserById(String userId) {
		// TODO Auto-generated method stub
		return userMapper.findUserById(userId);
	}


}
